

//
//  CPJCellToolBar.swift
//  Sina
//
//  Created by YYY on 2017/8/16.
//  Copyright © 2017年 成品家（北京）网路科技有限公司. All rights reserved.
//

import UIKit

class CPJCellToolBar: UIView
{
    //转发
    @IBOutlet weak var retweet: UIButton!
    //评论
    @IBOutlet weak var comment: UIButton!
    //赞
    @IBOutlet weak var like: UIButton!
    
    //定义didSet方法
    var viewModel: CPJListViewModel?
    {
        didSet
        {
            retweet.setTitle(viewModel?.retweetString, for: .normal)
            comment.setTitle(viewModel?.commentString, for: .normal)
            like.setTitle(viewModel?.likeString, for: .normal)
        }
    }
}
